﻿using System;
using System.ComponentModel.DataAnnotations;

namespace LJSheng.Data
{
    /// <summary>
    /// 评论
    /// </summary>
    public class PL
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public Guid gid { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime addtime { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int sort { get; set; }

        /// <summary>
        /// 是否显示
        /// </summary>
        public int show { get; set; }

        /// <summary>
        /// 用户GID
        /// </summary>
        public Guid usergid { get; set; }

        /// <summary>
        /// 商家GID
        /// </summary>
        public Guid cpgid { get; set; }

        /// <summary>
        /// 订单GID
        /// </summary>
        public Guid ddgid { get; set; }

        /// <summary>
        /// 评论内容
        /// </summary>
        [StringLength(800)]
        public string msg { get; set; }

        /// <summary>
        /// 商家回复
        /// </summary>
        [StringLength(800)]
        public string tomsg { get; set; }

        /// <summary>
        /// 商家回复时间
        /// </summary>
        public DateTime? pltime { get; set; }

        /// <summary>
        /// 商家的评价[1=好 2=一般 3=差]
        /// </summary>
        public int shoppj { get; set; }

        /// <summary>
        /// 会员的评价[1=好 2=一般 3=差]
        /// </summary>
        public int userpj { get; set; }
    }
}
